<template>
    <el-form-item :label="item.attributeLabel">
        <el-col :span="12">
            <el-select v-model="form[item.attributelabel]" @change="handleSelectChange(index)">
                <el-option v-for="option in options" :key="option.id" :label="option.name" :value="option.id"></el-option>
            </el-select>
        </el-col>
    </el-form-item>
</template>
<script>

export default {
    props: ['item', 'form'],
    data() {
        return {
            options: []
        }
    },
    methods: {
        handleSelectChange(id) {
            if (!id) {
                this.options = [];
            } else {
                // 接口
            }
        }
    }
}
</script>
<style scoped></style>